package com.alibaba.aone.casestudy.service;

import java.util.List;

import com.alibaba.aone.casestudy.common.entity.Action;
import com.alibaba.aone.casestudy.common.entity.CaseStudyConditions;
import com.alibaba.aone.casestudy.common.entity.Casestudy;
import com.alibaba.aone.casestudy.common.entity.CasestudyAnalysisParticipant;

public interface CasestudyService {

	public List<Casestudy> listCasestudys(CaseStudyConditions conditions);

	public Casestudy getCasestudyByNumber(String casestudyNo);

	public List<Casestudy> search(CaseStudyConditions caseStudyConditions);

	public List<CasestudyAnalysisParticipant> getAnalysisPartisByCasestudyno(
			String csno);

	public List<Casestudy> getAllCasestudies();

	/**
	 * 更新一个Casestudy的分析参与人
	 * 
	 * @param 分析参与人list
	 * @param casestudyNumber
	 */
	public void updateAnalysisPartis(List<CasestudyAnalysisParticipant> newPartis,
			String csno);
	
	public void addAnalysisParti(CasestudyAnalysisParticipant parti);
	
	public int removeAnalysisParti(CasestudyAnalysisParticipant parti);

}
